package net.itbaiyang.pattern.email.bridge.bridgeMajor;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import net.itbaiyang.pattern.factory.MailMessageFactory;
import net.itbaiyang.pattern.util.JsonData;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 *发送器
 */
@Slf4j
public abstract class MailSender {

    /**
     * 抽象邮件发送
     */
    abstract public JsonData send(Map<String,Object> mailInfo,JavaMailSender mailSender);

}
